package com.lyf.design.learn.designmodel.observer.test;

/**
 * @AUTHOR LYF
 * @DATE 2022/6/10
 * @VERSION 1.0
 * @DESC
 * 观察者
 */
public abstract class Observer {
    protected String name;
    abstract void resp(String msg); //Subject subject

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
